package com.entity;

import com.utils.Constants;

/**
 * @ProjectName: shop
 * @Author: Jsx
 * @Time: 2020/8/30 12:28
 * @Description:
 */
public class Message {
    /**
     * 0 失败
     * 1 成功
     */
    private int code = Constants.MESSAGE_FAIL;
    private String message;
    private Object data;

    public Message(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Message() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
